package com.ethink.warehouse.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ethink.warehouse.api.info.MateInventoryOtherOutLogDetailInfo;
import com.ethink.warehouse.api.request.MateInventoryOtherOutLogDetailAddRequest;
import com.ethink.warehouse.api.request.MateInventoryOtherOutLogDetailQueryRequest;
import com.ethink.warehouse.api.request.MateInventoryOtherOutLogDetailUpdateRequest;
import com.ethink.warehouse.api.response.MateInventoryOtherOutLogDetailAddResponse;
import com.ethink.warehouse.api.response.MateInventoryOtherOutLogDetailDeleteResponse;
import com.ethink.warehouse.api.response.MateInventoryOtherOutLogDetailUpdateResponse;
import com.ethink.warehouse.common.entity.MateInventoryOtherOutLogDetail;

import java.util.List;

/**
 * 其他出库明细 Service接口
 *
 * @author default
 * @date 2023-02-08
 */
public interface MateInventoryOtherOutLogDetailService {

    /**
     * 分页查询
     *
     * @param request
     * @return
     */
    Page<MateInventoryOtherOutLogDetailInfo> queryMateInventoryOtherOutLogDetail(MateInventoryOtherOutLogDetailQueryRequest request);

    /**
     * 查询详情
     *
     * @param mateInventoryOtherOutLogDetailId
     * @return
     */
    MateInventoryOtherOutLogDetailInfo getMateInventoryOtherOutLogDetailById(Long mateInventoryOtherOutLogDetailId);

    /**
     * 查询列表
     *
     * @param request
     * @return
     */
    List<MateInventoryOtherOutLogDetailInfo> listMateInventoryOtherOutLogDetail(MateInventoryOtherOutLogDetailQueryRequest request);

    /**
     * 新增
     *
     * @param request
     * @return
     */
    MateInventoryOtherOutLogDetailAddResponse addMateInventoryOtherOutLogDetail(MateInventoryOtherOutLogDetailAddRequest request);

    /**
     * 修改
     *
     * @param request
     * @return
     */
    MateInventoryOtherOutLogDetailUpdateResponse updateMateInventoryOtherOutLogDetail(MateInventoryOtherOutLogDetailUpdateRequest request);

    /**
     * 删除
     *
     * @param mateInventoryOtherOutLogDetailId
     * @return
     */
    MateInventoryOtherOutLogDetailDeleteResponse deleteMateInventoryOtherOutLogDetail(Long mateInventoryOtherOutLogDetailId);

    /**
     * 新增n个
     *
     * @param childrenList
     */
    Boolean addMateInventoryOtherOutLogDetailList(List<MateInventoryOtherOutLogDetail> childrenList);

    /**
     * 根据主表的orderNo查询详情表
     *
     * @param orderNo
     * @return
     */
    List<MateInventoryOtherOutLogDetailInfo> getMateInventoryOtherOutLogDetailByOrderNo(String orderNo);

    /**
     * 删除详情数据
     *
     * @param orderNo
     * @return
     */
    Boolean deleteDetailByOrderNo(String orderNo);

}